#!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 题目：打印出如下图案（菱形）:
#    *
#   ***
#  *****
# *******
#  *****
#   ***
#    *


def f1():
    length = 7
    for i in range(-int(length/2), int(length/2+1)):
        print(' '*abs(i), '*'*(length-2*abs(i)))


f = f1
if __name__ == "__main__":
    f()
